package com.tepth.vehiclemaintenance.bean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by zhangyu on 2017/5/11.
 */

public class MaintainListWork implements Serializable {


    /**
     * ContentTypeCode : 01
     * ContentTypeName : 发动机部分
     * ConfirmPersonCode :
     * ConfirmPersonName : 张勇
     * ConfirmTime : 2016-12-04 16:08
     * ConfirmMonitorCode : 610701
     * ConfirmMonitorName : 蒋伦
     * ConfirmMonitorTime : 2016-12-04 16:09
     * CompletedRemark :
     * MaintenanceTypeCode :
     * ClassificationCode :
     * ListContents : [{"Value":"","WorkPersonCode":"","WorkPersonName":"","WorkTime":"","Remark":"","ListRemark":[{"Id":2,"Classification":{"Id":22981,"Code":"20141191","Name":"发动机系"},"TroubleTypeId":1,"Code":"01","Name":"发动机附加作业及换件","Operation":{"Id":2,"Code":"02","Name":"更换"},"Component":{"Id":21,"Code":"0021","Name":"半轴","Unit":"个"},"Accessory":{"Id":21,"Code":"0021","Name":"半轴","Unit":"个"},"UseCount":1,"WorkPerson":{"Id":22981,"Code":"20141191","Name":"黄权","PositionInfo":{"Id":22981,"Code":"20141191","Name":"黄权"}}}],"TemplateId":0,"MaintenanceTypeCode":"","Id":46155,"Sort":1,"ContentTypeCode":"01","ContentDesc":"发动机附加作业及换件","TechnicalRequirement":"","ValueTypeCode":"text","ValueType":"字符串型","ValueTypeDetail":"","ValueUnit":"","ValueDefault":"","IsRequired":false,"MaxValue":"","MinValue":""}]
     */

    private String ContentTypeCode;
    private String ContentTypeName;
    private String ConfirmPersonCode;
    private String ConfirmPersonName;
    private String ConfirmTime;
    private String ConfirmMonitorCode;
    private String ConfirmMonitorName;
    private String ConfirmMonitorTime;
    private String CompletedRemark;
    private String MaintenanceTypeCode;
    private String ClassificationCode;
    private int temp_select_number;//操作了Contents集合的数量
    private boolean isSelected;
    private boolean isGuojian;
    private List<ListContentsBean> ListContents;

    public boolean isGuojian() {
        return isGuojian;
    }

    public void setGuojian(boolean guojian) {
        isGuojian = guojian;
    }

    public boolean isSelected() {
        return isSelected;
    }

    public void setSelected(boolean selected) {
        isSelected = selected;
    }

    public int getTemp_select_number() {
        return temp_select_number;
    }

    public void setTemp_select_number(int temp_select_number) {
        this.temp_select_number = temp_select_number;
    }

    public String getContentTypeCode() {
        return ContentTypeCode;
    }

    public void setContentTypeCode(String ContentTypeCode) {
        this.ContentTypeCode = ContentTypeCode;
    }

    public String getContentTypeName() {
        return ContentTypeName;
    }

    public void setContentTypeName(String ContentTypeName) {
        this.ContentTypeName = ContentTypeName;
    }

    public String getConfirmPersonCode() {
        return ConfirmPersonCode;
    }

    public void setConfirmPersonCode(String ConfirmPersonCode) {
        this.ConfirmPersonCode = ConfirmPersonCode;
    }

    public String getConfirmPersonName() {
        return ConfirmPersonName;
    }

    public void setConfirmPersonName(String ConfirmPersonName) {
        this.ConfirmPersonName = ConfirmPersonName;
    }

    public String getConfirmTime() {
        return ConfirmTime;
    }

    public void setConfirmTime(String ConfirmTime) {
        this.ConfirmTime = ConfirmTime;
    }

    public String getConfirmMonitorCode() {
        return ConfirmMonitorCode;
    }

    public void setConfirmMonitorCode(String ConfirmMonitorCode) {
        this.ConfirmMonitorCode = ConfirmMonitorCode;
    }

    public String getConfirmMonitorName() {
        return ConfirmMonitorName;
    }

    public void setConfirmMonitorName(String ConfirmMonitorName) {
        this.ConfirmMonitorName = ConfirmMonitorName;
    }

    public String getConfirmMonitorTime() {
        return ConfirmMonitorTime;
    }

    public void setConfirmMonitorTime(String ConfirmMonitorTime) {
        this.ConfirmMonitorTime = ConfirmMonitorTime;
    }

    public String getCompletedRemark() {
        return CompletedRemark;
    }

    public void setCompletedRemark(String CompletedRemark) {
        this.CompletedRemark = CompletedRemark;
    }

    public String getMaintenanceTypeCode() {
        return MaintenanceTypeCode;
    }

    public void setMaintenanceTypeCode(String MaintenanceTypeCode) {
        this.MaintenanceTypeCode = MaintenanceTypeCode;
    }

    public String getClassificationCode() {
        return ClassificationCode;
    }

    public void setClassificationCode(String ClassificationCode) {
        this.ClassificationCode = ClassificationCode;
    }

    public List<ListContentsBean> getListContents() {
        return ListContents;
    }

    public void setListContents(List<ListContentsBean> ListContents) {
        this.ListContents = ListContents;
    }

    public static class ListContentsBean implements Serializable {
        /**
         * Value :
         * WorkPersonCode :
         * WorkPersonName :
         * WorkTime :
         * Remark :
         * ListRemark : [{"Id":2,"Classification":{"Id":22981,"Code":"20141191","Name":"发动机系"},"TroubleTypeId":1,"Code":"01","Name":"发动机附加作业及换件","Operation":{"Id":2,"Code":"02","Name":"更换"},"Component":{"Id":21,"Code":"0021","Name":"半轴","Unit":"个"},"Accessory":{"Id":21,"Code":"0021","Name":"半轴","Unit":"个"},"UseCount":1,"WorkPerson":{"Id":22981,"Code":"20141191","Name":"黄权","PositionInfo":{"Id":22981,"Code":"20141191","Name":"黄权"}}}]
         * TemplateId : 0
         * MaintenanceTypeCode :
         * Id : 46155
         * Sort : 1
         * ContentTypeCode : 01
         * ContentDesc : 发动机附加作业及换件
         * TechnicalRequirement :
         * ValueTypeCode : text
         * ValueType : 字符串型
         * ValueTypeDetail :
         * ValueUnit :
         * ValueDefault :
         * IsRequired : false
         * MaxValue :
         * MinValue :
         */

        private String Value;
        private String WorkPersonCode;
        private String WorkPersonName;
        private String WorkTime;
        private String Remark;
        private int TemplateId;
        private String MaintenanceTypeCode;
        private int Id;
        private int Sort;
        private String ContentTypeCode;
        private String ContentDesc;
        private String TechnicalRequirement;
        private String ValueTypeCode;
        private String ValueType;
        private String ValueTypeDetail;
        private String ValueUnit;
        private String ValueDefault;
        private boolean IsRequired;
        private String MaxValue;
        private String MinValue;
        //我提交给服务器
        private List<ListRemarkBean> ListRemark;
        //服务器自带
        private List<ListRemarkBean> ListTrouble;

        //状态 0 普通，1 已打卡，2 待打卡
        private int state = 0;

        public List<ListRemarkBean> getListTrouble() {
            return ListTrouble;
        }

        public void setListTrouble(List<ListRemarkBean> listTrouble) {
            ListTrouble = listTrouble;
        }

        public int getState() {
            return state;
        }

        public void setState(int state) {
            this.state = state;
        }

        public String getValue() {
            return Value;
        }

        public void setValue(String Value) {
            this.Value = Value;
        }

        public String getWorkPersonCode() {
            return WorkPersonCode;
        }

        public void setWorkPersonCode(String WorkPersonCode) {
            this.WorkPersonCode = WorkPersonCode;
        }

        public String getWorkPersonName() {
            return WorkPersonName;
        }

        public void setWorkPersonName(String WorkPersonName) {
            this.WorkPersonName = WorkPersonName;
            if (WorkPersonName != null && !WorkPersonName.isEmpty() && "null".equals(WorkPersonName)) {
                //已打卡
                setState(2);
            }
        }

        public String getWorkTime() {
            return WorkTime;
        }

        public void setWorkTime(String WorkTime) {
            this.WorkTime = WorkTime;
        }

        public String getRemark() {
            return Remark;
        }

        public void setRemark(String Remark) {
            this.Remark = Remark;
        }

        public int getTemplateId() {
            return TemplateId;
        }

        public void setTemplateId(int TemplateId) {
            this.TemplateId = TemplateId;
        }

        public String getMaintenanceTypeCode() {
            return MaintenanceTypeCode;
        }

        public void setMaintenanceTypeCode(String MaintenanceTypeCode) {
            this.MaintenanceTypeCode = MaintenanceTypeCode;
        }

        public int getId() {
            return Id;
        }

        public void setId(int Id) {
            this.Id = Id;
        }

        public int getSort() {
            return Sort;
        }

        public void setSort(int Sort) {
            this.Sort = Sort;
        }

        public String getContentTypeCode() {
            return ContentTypeCode;
        }

        public void setContentTypeCode(String ContentTypeCode) {
            this.ContentTypeCode = ContentTypeCode;
        }

        public String getContentDesc() {
            return ContentDesc;
        }

        public void setContentDesc(String ContentDesc) {
            this.ContentDesc = ContentDesc;
        }

        public String getTechnicalRequirement() {
            return TechnicalRequirement;
        }

        public void setTechnicalRequirement(String TechnicalRequirement) {
            this.TechnicalRequirement = TechnicalRequirement;
        }

        public String getValueTypeCode() {
            return ValueTypeCode;
        }

        public void setValueTypeCode(String ValueTypeCode) {
            this.ValueTypeCode = ValueTypeCode;
        }

        public String getValueType() {
            return ValueType;
        }

        public void setValueType(String ValueType) {
            this.ValueType = ValueType;
        }

        public String getValueTypeDetail() {
            return ValueTypeDetail;
        }

        public void setValueTypeDetail(String ValueTypeDetail) {
            this.ValueTypeDetail = ValueTypeDetail;
        }

        public String getValueUnit() {
            return ValueUnit;
        }

        public void setValueUnit(String ValueUnit) {
            this.ValueUnit = ValueUnit;
        }

        public String getValueDefault() {
            return ValueDefault;
        }

        public void setValueDefault(String ValueDefault) {
            this.ValueDefault = ValueDefault;
        }

        public boolean isIsRequired() {
            return IsRequired;
        }

        public void setIsRequired(boolean IsRequired) {
            this.IsRequired = IsRequired;
        }

        public String getMaxValue() {
            return MaxValue;
        }

        public void setMaxValue(String MaxValue) {
            this.MaxValue = MaxValue;
        }

        public String getMinValue() {
            return MinValue;
        }

        public void setMinValue(String MinValue) {
            this.MinValue = MinValue;
        }

        public List<ListRemarkBean> getListRemark() {
            return ListRemark;
        }

        public void setListRemark(List<ListRemarkBean> ListRemark) {
            this.ListRemark = ListRemark;
        }

        public static class ListRemarkBean implements Serializable {
            /**
             * Id : 2
             * Classification : {"Id":22981,"Code":"20141191","Name":"发动机系"}
             * TroubleTypeId : 1
             * Code : 01
             * Name : 发动机附加作业及换件
             * Operation : {"Id":2,"Code":"02","Name":"更换"}
             * Component : {"Id":21,"Code":"0021","Name":"半轴","Unit":"个"}
             * Accessory : {"Id":21,"Code":"0021","Name":"半轴","Unit":"个"}
             * UseCount : 1
             * WorkPerson : {"Id":22981,"Code":"20141191","Name":"黄权","PositionInfo":{"Id":22981,"Code":"20141191","Name":"黄权"}}
             */

            private int Id;
            private ClassificationBean Classification;
            private int TroubleTypeId;
            private String Code;
            private String Name;
            private OperationBean Operation;
            private AccessoryBean Component;
            private AccessoryBean Accessory;
            private int UseCount;
            private WorkPersonBean WorkPerson;
            private boolean IsChecked;
            private boolean Type;//false为系统，true为自定义
            private boolean isCanDelete = false;

            public boolean isCanDelete() {
                return isCanDelete;
            }

            public void setCanDelete(boolean canDelete) {
                isCanDelete = canDelete;
            }

            public boolean isChecked() {
                return IsChecked;
            }

            public void setChecked(boolean checked) {
                IsChecked = checked;
            }

            public boolean isType() {
                return Type;
            }

            public void setType(boolean type) {
                Type = type;
            }

            public int getId() {
                return Id;
            }

            public void setId(int Id) {
                this.Id = Id;
            }

            public ClassificationBean getClassification() {
                return Classification;
            }

            public void setClassification(ClassificationBean Classification) {
                this.Classification = Classification;
            }

            public int getTroubleTypeId() {
                return TroubleTypeId;
            }

            public void setTroubleTypeId(int TroubleTypeId) {
                this.TroubleTypeId = TroubleTypeId;
            }

            public String getCode() {
                return Code;
            }

            public void setCode(String Code) {
                this.Code = Code;
            }

            public String getName() {
                return Name;
            }

            public void setName(String Name) {
                this.Name = Name;
            }

            public OperationBean getOperation() {
                return Operation;
            }

            public void setOperation(OperationBean Operation) {
                this.Operation = Operation;
            }

            public AccessoryBean getComponent() {
                return Component;
            }

            public void setComponent(AccessoryBean Component) {
                this.Component = Component;
            }

            public AccessoryBean getAccessory() {
                return Accessory;
            }

            public void setAccessory(AccessoryBean Accessory) {
                this.Accessory = Accessory;
            }

            public int getUseCount() {
                return UseCount;
            }

            public void setUseCount(int UseCount) {
                this.UseCount = UseCount;
            }

            public WorkPersonBean getWorkPerson() {
                return WorkPerson;
            }

            public void setWorkPerson(WorkPersonBean WorkPerson) {
                this.WorkPerson = WorkPerson;
            }

            public static class ClassificationBean implements Serializable {
                /**
                 * Id : 22981
                 * Code : 20141191
                 * Name : 发动机系
                 */

                private int Id;
                private String Code;
                private String Name;

                public int getId() {
                    return Id;
                }

                public void setId(int Id) {
                    this.Id = Id;
                }

                public String getCode() {
                    return Code;
                }

                public void setCode(String Code) {
                    this.Code = Code;
                }

                public String getName() {
                    return Name;
                }

                public void setName(String Name) {
                    this.Name = Name;
                }
            }

            public static class OperationBean implements Serializable {
                /**
                 * Id : 2
                 * Code : 02
                 * Name : 更换
                 */

                private int Id;
                private String Code;
                private String Name;

                public int getId() {
                    return Id;
                }

                public void setId(int Id) {
                    this.Id = Id;
                }

                public String getCode() {
                    return Code;
                }

                public void setCode(String Code) {
                    this.Code = Code;
                }

                public String getName() {
                    return Name;
                }

                public void setName(String Name) {
                    this.Name = Name;
                }

                @Override
                public String toString() {
                    return Name;
                }
            }

            public static class AccessoryBean implements Serializable {
                /**
                 * Id : 21
                 * Code : 0021
                 * Name : 半轴
                 * Unit : 个
                 */

                private int Id;
                private String Code;
                private String Name;
                private String Unit;

                public int getId() {
                    return Id;
                }

                public void setId(int Id) {
                    this.Id = Id;
                }

                public String getCode() {
                    return Code;
                }

                public void setCode(String Code) {
                    this.Code = Code;
                }

                public String getName() {
                    return Name;
                }

                public void setName(String Name) {
                    this.Name = Name;
                }

                public String getUnit() {
                    return Unit;
                }

                public void setUnit(String Unit) {
                    this.Unit = Unit;
                }

                @Override
                public String toString() {
                    return Name;
                }
            }

            public static class WorkPersonBean implements Serializable {
                /**
                 * Id : 22981
                 * Code : 20141191
                 * Name : 黄权
                 * PositionInfo : {"Id":22981,"Code":"20141191","Name":"黄权"}
                 */

                private int Id;
                private String Code;
                private String Name;
                private PositionInfoBean PositionInfo;

                public int getId() {
                    return Id;
                }

                public void setId(int Id) {
                    this.Id = Id;
                }

                public String getCode() {
                    return Code;
                }

                public void setCode(String Code) {
                    this.Code = Code;
                }

                public String getName() {
                    return Name;
                }

                public void setName(String Name) {
                    this.Name = Name;
                }

                public PositionInfoBean getPositionInfo() {
                    return PositionInfo;
                }

                public void setPositionInfo(PositionInfoBean PositionInfo) {
                    this.PositionInfo = PositionInfo;
                }

                public static class PositionInfoBean implements Serializable {
                    /**
                     * Id : 22981
                     * Code : 20141191
                     * Name : 黄权
                     */

                    private int Id;
                    private String Code;
                    private String Name;

                    public int getId() {
                        return Id;
                    }

                    public void setId(int Id) {
                        this.Id = Id;
                    }

                    public String getCode() {
                        return Code;
                    }

                    public void setCode(String Code) {
                        this.Code = Code;
                    }

                    public String getName() {
                        return Name;
                    }

                    public void setName(String Name) {
                        this.Name = Name;
                    }
                }
            }
        }
    }
}
